/*
 * @(#)cn.design.pattern.responsibilitychain 2020/4/28/0028
 *
 * Copy Right@ 人人译视界
 */


package cn.design.pattern.responsibilitychain;

/**
 * <pre>
 * @author tuwei
 *
 * @version 0.9
 *
 * 修改版本: 0.9
 * 修改日期: 2020/4/28/0028
 * 修改人 :  tuwei
 * 修改说明: 初步完成
 * 复审人 ：
 * </pre>
 */
public class SchoolMasterApprover extends Approver {
	public SchoolMasterApprover(String name) {
		super(name);
	}

	@Override
	public void processRequest(PurchaseRequest request) {
		if (request.getPrice() > 30000) {
			System.out.println("请求编号id=" + request.getId() + "被" + this.name + "处理");
		}
		else {
			nextApprover.processRequest(request);
		}
	}
}
